<?php
namespace App\Models;

use App\Exceptions\ApiException;
use Illuminate\Support\Facades\DB;

class ManageWorkImage extends CommonModel {
	protected $table = 'manage_work_image';

    public static function created($work_id,$uid,$image,$type,$confirm_id=0){
        $input = array(
          'work_id'=>$work_id,
          'uid'=>$uid,
          'image'=>$image,
          'type'=>$type,
          'confirm_id'=>$confirm_id,
        );
        return static::create($input);
    }
}